<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<title>Caso de Uso</title>
</h:head>
<h:body>

	<ui:composition template="template.xhtml">

		<ui:define name="template_title">
       Inclusão de Casos de Uso
      </ui:define>

		<ui:define name="page_content">
			<h:form id="form">

				<p:panel id="panel" header="Novo CasoDeUso"
					style="margin-bottom:10px;">
					<!-- <p:messages id="messages" /> -->
					<h:panelGrid columns="3">				
						
						<h:outputLabel for="nomeID" value="Nome do Caso de Uso *" />
                        <p:inputText id="nomeID"
                            value="#{casoDeUsoBean.casoDeUso.nome}" required="true"
                            label="nome">
                        </p:inputText>
                        <p:message for="nomeID" />

						<h:outputLabel for="descricaoID" value="Descrição *" />
						<p:inputText id="descricaoID"
							value="#{casoDeUsoBean.casoDeUso.descricao}" required="true"
							label="descricao">
						</p:inputText>
						<p:message for="descricaoID" />
					</h:panelGrid>
				</p:panel>			

				<p:commandButton value="Enviar" update="panel" id="ajax"
					actionListener="#{casoDeUsoBean.incluir}"
					styleClass="ui-priority-primary" />
			</h:form>
		</ui:define>
	</ui:composition>
</h:body>

</html>